package com.gxy.learn.optimisticlock.repository;

import com.gxy.learn.optimisticlock.entity.SysJob;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * author: Gao xueyong
 * Create at: 2022/2/22 上午12:00
 */
public interface SysJobRepository extends JpaRepository<SysJob, Long> {

    /**
     * 通过状态获取数据
     * @param state
     * @return
     */
    List<SysJob> findByState(Integer state);
}
